From 668e9eaabbd17ac613c3ffc8c9f1889f01dd2f87 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Javier=20Jard=C3=B3n?= Date: Sat, 10 Oct 2009 16:41:21 +0200 Subject: [PATCH] Remove deprecated code: GdkPixbufAnimation --- gdk-pixbuf/gdk-pixbuf-animation.c | 30 ------------------------------ gdk-pixbuf/gdk-pixbuf-animation.h | 5 ----- gdk-pixbuf/gdk-pixbuf.symbols | 4 ---- 3 files changed, 39 deletions(-) diff --git a/gdk-pixbuf/gdk-pixbuf-animation.c b/gdk-pixbuf/gdk-pixbuf-animation.c index 28da439d99..6d5e835963 100644 --- a/gdk-pixbuf/gdk-pixbuf-animation.c +++ b/gdk-pixbuf/gdk-pixbuf-animation.c @@ -257,36 +257,6 @@ gdk_pixbuf_animation_new_from_file (const char *filename, #endif -/** - * gdk_pixbuf_animation_ref: - * @animation: An animation. - * - * Adds a reference to an animation. - * - * Return value: The same as the @animation argument. - * - * Deprecated: 2.0: Use g_object_ref(). - **/ -GdkPixbufAnimation * -gdk_pixbuf_animation_ref (GdkPixbufAnimation *animation) -{ - return (GdkPixbufAnimation*) g_object_ref (animation); -} - -/** - * gdk_pixbuf_animation_unref: - * @animation: An animation. - * - * Removes a reference from an animation. - * - * Deprecated: 2.0: Use g_object_unref(). - **/ -void -gdk_pixbuf_animation_unref (GdkPixbufAnimation *animation) -{ - g_object_unref (animation); -} - /** * gdk_pixbuf_animation_is_static_image: * @animation: a #GdkPixbufAnimation diff --git a/gdk-pixbuf/gdk-pixbuf-animation.h b/gdk-pixbuf/gdk-pixbuf-animation.h index 32757ee764..024a1596d7 100644 --- a/gdk-pixbuf/gdk-pixbuf-animation.h +++ b/gdk-pixbuf/gdk-pixbuf-animation.h @@ -58,11 +58,6 @@ GType gdk_pixbuf_animation_get_type (void) G_GNUC_CONST; GdkPixbufAnimation *gdk_pixbuf_animation_new_from_file (const char *filename, GError **error); -#ifndef GDK_PIXBUF_DISABLE_DEPRECATED -GdkPixbufAnimation *gdk_pixbuf_animation_ref (GdkPixbufAnimation *animation); -void gdk_pixbuf_animation_unref (GdkPixbufAnimation *animation); -#endif - int gdk_pixbuf_animation_get_width (GdkPixbufAnimation *animation); int gdk_pixbuf_animation_get_height (GdkPixbufAnimation *animation); gboolean gdk_pixbuf_animation_is_static_image (GdkPixbufAnimation *animation); diff --git a/gdk-pixbuf/gdk-pixbuf.symbols b/gdk-pixbuf/gdk-pixbuf.symbols index ddf01c0411..2e2548df1e 100644 --- a/gdk-pixbuf/gdk-pixbuf.symbols +++ b/gdk-pixbuf/gdk-pixbuf.symbols @@ -118,10 +118,6 @@ gdk_pixbuf_animation_new_from_file PRIVATE #ifdef G_OS_WIN32 gdk_pixbuf_animation_new_from_file_utf8 #endif -#ifndef GDK_PIXBUF_DISABLE_DEPRECATED -gdk_pixbuf_animation_ref -gdk_pixbuf_animation_unref -#endif gdk_pixbuf_non_anim_new gdk_pixbuf_non_anim_get_type G_GNUC_CONST #endif -- 2.30.2